package com.drawu.drawuspring.domain.DTO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 廖耀华
 * @since 2025-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("message")
@ApiModel(value="message对象", description="")
public class MessageDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "发送者的id")
    private Integer userId;

    @ApiModelProperty(value = "接收者的id")
    private Integer targetId;

    @ApiModelProperty(value = "来源id")
    private Integer sourceId;

    @ApiModelProperty(value = "消息类型")
    // like 点赞 comment 评论
    private String type;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "消息图片")
    private String url;
}
